﻿<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="TutorRegister.aspx.cs" Inherits="_Default" Title="Form Nhập Gia Sư" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <table style="width: 100%;">
        <tr>
            <td align="center" colspan="3" style="text-align: center;" valign="top">
                <asp:Label ID="Label1" runat="server" Text="ĐĂNG KÍ GIA SƯ " Font-Bold="True" 
                    Font-Size="Large"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label2" runat="server" Text="Họ và tên:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorName" runat="server" Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtTutorName" CssClass="notification" 
                    ErrorMessage="Chưa nhập tên" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formTutor"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label3" runat="server" Text="Giới tính:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:DropDownList ID="drTutorGend" class="dr" runat="server" Width="65px">
                    <asp:ListItem Selected="True" Value="false">Nữ</asp:ListItem>
                    <asp:ListItem Value="true">Nam</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label4" runat="server" Text="Số CMND:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorIdNum" runat="server" Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtTutorIdNum" CssClass="notification" 
                    ErrorMessage="Chưa nhập số CMND" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formTutor"></asp:RequiredFieldValidator><br/>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtTutorIdNum" ErrorMessage="Nhập sai định dạng số CMND" 
                    Font-Bold="True" ForeColor="Red" ValidationExpression="\d*" 
                    ValidationGroup="formTutor" CssClass="notification"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label5" runat="server" Text="Địa chỉ:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorAdd" runat="server" TextMode="MultiLine" 
                    Width="264px" Rows="5"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtTutorAdd" CssClass="notification" 
                    ErrorMessage="Chưa nhập địa chỉ" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formTutor"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label6" runat="server" Text="Năm sinh:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%" valign="top">
                <asp:TextBox ID="txtTutorBirth" runat="server" Width="124px"></asp:TextBox>
                <asp:Label ID="Label22" runat="server" Text="(MM/dd/YYYY)"></asp:Label>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtTutorBirth" CssClass="notification" 
                    ErrorMessage="Chưa nhập năm sinh" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formTutor"></asp:RequiredFieldValidator>
                <br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                    ControlToValidate="txtTutorBirth" ErrorMessage="Nhập sai định dạng ngày" 
                    Font-Bold="True" ForeColor="Red" ValidationExpression="^([0]\d|[1][0-2])\/([0-2]\d|[3][0-1])\/([2][01]|[1][6-9])\d{2}(\s([0]\d|[1][0-2])(\:[0-5]\d){1,2})*\s*([aApP][mM]{0,2})?$" 
                    ValidationGroup="formTutor" CssClass="notification"></asp:RegularExpressionValidator>
                <br />
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label7" runat="server" Text="Điện thoại liên lạc"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorPhone" runat="server" Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtTutorPhone" CssClass="notification" 
                    ErrorMessage="Chưa nhập số điện thoại" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formTutor"></asp:RequiredFieldValidator>
                <br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txtTutorPhone" ErrorMessage="Nhập sai định dạng số" 
                    Font-Bold="True" ForeColor="Red" ValidationExpression="\d*" 
                    ValidationGroup="formTutor" CssClass="notification"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label8" runat="server" Text="Email:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorEmail" runat="server" Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtTutorEmail" CssClass="notification" 
                    ErrorMessage="Chưa nhập Email" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formTutor"></asp:RequiredFieldValidator>
                <br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                    ControlToValidate="txtTutorEmail" ErrorMessage="Nhập sai định dạng Email" 
                    Font-Bold="True" ForeColor="Red" ValidationExpression="[\w-]+@([\w-]+\.)+[\w-]+" 
                    ValidationGroup="formTutor" CssClass="notification"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label9" runat="server" Text="Trình độ:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:DropDownList ID="drTutorEdu" runat="server" Width="130px">
                    <asp:ListItem Selected="True" Value="0">Trung cấp</asp:ListItem>
                    <asp:ListItem Value="0">Cao đẳng</asp:ListItem>
                    <asp:ListItem Value="0">Đại học</asp:ListItem>
                    <asp:ListItem Value="0">Sau đại học</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label10" runat="server" Text="Sinh viên trường:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorUni" runat="server" Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label11" runat="server" Text="Chuyên ngành được đào tạo:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorSpec" runat="server" Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="txtTutorSpec" CssClass="notification" 
                    ErrorMessage="Chưa nhập tên chuyên ngành" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formTutor"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label12" runat="server" Text="Hiện đang là:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:DropDownList ID="drTutorJob" runat="server" Width="130px">
                    <asp:ListItem Selected="True" Value="0">Sinh viên</asp:ListItem>
                    <asp:ListItem Value="1">Đã tốt nghiệp</asp:ListItem>
                    <asp:ListItem Value="2">Giáo viên</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label21" runat="server" 
                    Text="Điểm: <br/> (thi đại học, điểm tổng kết ...)"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%;">
                <asp:TextBox ID="txtTutorMark" runat="server" Rows="3" TextMode="MultiLine" 
                    Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <br />
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label20" runat="server" Text="Ảnh đại diện:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <br />
                <asp:FileUpload ID="FileUpload1" runat="server" Width="100%" />
                <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="Label25" runat="server" Text="(jpg, jpeg, bmp, png, gif)"></asp:Label>
                <br />
                <asp:Image ID="imgTutor" runat="server" Width="150px" />
                <br />
                <asp:Button ID="btnUpload" class="button" runat="server" onclick="btnUpload_Click" 
                    Text="Xem lại" style="height: 26px" /> &nbsp 
                <asp:Button ID="btnChange" class="button" runat="server" Text="Thay đổi" 
                    onclick="btnChange_Click" />
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:Label ID="lblImageValid" runat="server" Font-Bold="True" ForeColor="Red" 
                    CssClass="notification"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label19" runat="server" Text="Các lớp có thể dạy:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:CheckBoxList ID="chkClass" runat="server" 
                    RepeatDirection="Horizontal">
                    <asp:ListItem Selected="True">Mầm non</asp:ListItem>
                    <asp:ListItem>Tiểu học</asp:ListItem>
                    <asp:ListItem>THCS</asp:ListItem>
                    <asp:ListItem>THPT</asp:ListItem>
                    <asp:ListItem>Luyện thi ĐH</asp:ListItem>
                </asp:CheckBoxList>            
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label13" runat="server" Text="Những môn có thể dạy:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorSub" runat="server" TextMode="MultiLine" 
                    Width="264px" Rows="5"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                    ControlToValidate="txtTutorSub" CssClass="notification" 
                    ErrorMessage="Chưa nhập môn học có thể dạy" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formTutor"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label14" runat="server" Text="Phương tiện đi lại:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%;">
                <asp:DropDownList ID="drTutorTrans" runat="server" Width="130px">
                    <asp:ListItem Selected="True" Value="0">Xe đạp</asp:ListItem>
                    <asp:ListItem Value="1">Xe máy</asp:ListItem>
                    <asp:ListItem Value="3">Xe bus</asp:ListItem>
                    <asp:ListItem Value="4">Phương tiện khác</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label15" runat="server" Text="Kinh nghiệm giảng dạy:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorExper" runat="server" Rows="10" TextMode="MultiLine" 
                    Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label16" runat="server" Text="Khu vực có thể dạy:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorPlace" runat="server" Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                    ControlToValidate="txtTutorPlace" CssClass="notification" 
                    ErrorMessage="Chưa nhập khu vực dạy" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formTutor"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label24" runat="server" Text="Thời gian có thể dạy:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:CheckBoxList ID="chkTime" runat="server" 
                    RepeatDirection="Horizontal">
                    <asp:ListItem Selected="True">Buổi sáng</asp:ListItem>
                    <asp:ListItem>Buổi chiều</asp:ListItem>
                    <asp:ListItem>Buổi tối</asp:ListItem>
                </asp:CheckBoxList>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label17" runat="server" Text="Lương tối thiểu yêu cầu:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorSalary" runat="server" Width="122px"></asp:TextBox>
                <asp:Label ID="Label23" runat="server" Text="x1000vnđ/1 buổi"></asp:Label>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                    ControlToValidate="txtTutorSalary" CssClass="notification" 
                    ErrorMessage="Chưa nhập lương tối thiểu" Font-Bold="True" ForeColor="Red" 
                    ValidationGroup="formTutor"></asp:RequiredFieldValidator>
                <br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                    ControlToValidate="txtTutorSalary" ErrorMessage="Nhập sai định dạng số" 
                    Font-Bold="True" ForeColor="Red" ValidationExpression="\d*" 
                    ValidationGroup="formTutor" CssClass="notification"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                <asp:Label ID="Label18" runat="server" Text="Thông tin khác:"></asp:Label>
            </td>
            <td style="vertical-align: top; text-align: left; width: 40%">
                <asp:TextBox ID="txtTutorDes" runat="server" Rows="10" TextMode="MultiLine" 
                    Width="264px"></asp:TextBox>
            </td>
            <td style="text-align: left; width: 30%; vertical-align: top;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right; width: 30%; vertical-align: top;">
                &nbsp;</td>
            <td>
                <asp:Button ID="Submit" class=button runat="server" Text="Hoàn thành" Width="80px" 
                    onclick="Submit_Click" ValidationGroup="formTutor" /> &nbsp
                <asp:Button ID="Reset" class=button runat="server" Text="Nhập lại" Width="65px" 
                    onclick="Reset_Click" />
            </td>
            <td style="text-align: left; width: 20%">
                &nbsp;</td>
        </tr>
    </table>
    
</asp:Content>

